package freehorizons.engine;

import java.util.ArrayList;
import java.util.List;

import freehorizons.core.environment.Trail;
import freehorizons.core.environment.TrailSegment;

public class SimpleTrail implements Trail
{

	private final double length_;
	private final String name_;
	private final List< TrailSegment > segments_;

	public SimpleTrail( String name, double length )
	{
		length_ = length;
		name_ = name;
		segments_ = new ArrayList< TrailSegment >( );
	}

	@Override
	public double getLength( )
	{
		return length_;
	}

	@Override
	public String getName( )
	{
		return name_;
	}

	@Override
	public List< TrailSegment > getSegments( )
	{
		return segments_;
	}

}
